package cn.itsource.fillback;

import cn.itsource.User;
import cn.itsource.feignclients.UserFeignClient;
import org.springframework.stereotype.Component;

//托底类：一定要去实现 Feign接口
@Component
public class UserFeignClientFallback implements UserFeignClient {
    //拖底方法
    @Override
    public User getuser(Integer id) {
        return new User(-1,"无此服务","此服务无效");
    }
}
